package com.zzyl.nursing.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
//@Component
public class MySpringTask {

    @Scheduled(cron = "0/1 * * * * ?")
    public void mySpringTask(){
        log.info("哥几个，又是没好的一天");
    }
}
